prefix=/opt/fastcgi

all:
	@echo "usage: make <install>"
	@echo "# install fastcgi to ${prefix} with root"

install:
	rm -vfr fastcgi-master
	unzip fastcgi-2.4.1.zip
	cd fastcgi-master/2.4.1/src/ && ./configure --prefix=$(prefix) --disable-shared
	cd fastcgi-master/2.4.1/src/ && make
	cd fastcgi-master/2.4.1/src/ && make install
	rm -vfr fastcgi-master
	echo "----- install fastcgi done! -----"